3.22.81 \(\int \frac {1+2 x+x^2}{x^4} \, dx\) [2181]

Optimal. Leaf size=18 \[ -\frac {1}{3 x^3}-\frac {1}{x^2}-\frac {1}{x} \]

[Out]

-1/3/x^3-1/x^2-1/x

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {14} \begin {gather*} -\frac {1}{3 x^3}-\frac {1}{x^2}-\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1 + 2*x + x^2)/x^4,x]

[Out]

-1/3*1/x^3 - x^(-2) - x^(-1)

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rubi steps

\begin {align*} \int \frac {1+2 x+x^2}{x^4} \, dx &=\int \left (\frac {1}{x^4}+\frac {2}{x^3}+\frac {1}{x^2}\right ) \, dx\\ &=-\frac {1}{3 x^3}-\frac {1}{x^2}-\frac {1}{x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 18, normalized size = 1.00 \begin {gather*} -\frac {1}{3 x^3}-\frac {1}{x^2}-\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(1 + 2*x + x^2)/x^4,x]

[Out]

-1/3*1/x^3 - x^(-2) - x^(-1)

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 17, normalized size = 0.94

method result size
norman \(\frac {-x^{2}-x -\frac {1}{3}}{x^{3}}\) \(15\)
risch \(\frac {-x^{2}-x -\frac {1}{3}}{x^{3}}\) \(15\)
gosper \(-\frac {3 x^{2}+3 x +1}{3 x^{3}}\) \(16\)
default \(-\frac {1}{3 x^{3}}-\frac {1}{x^{2}}-\frac {1}{x}\) \(17\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2+2*x+1)/x^4,x,method=_RETURNVERBOSE)

[Out]

-1/3/x^3-1/x^2-1/x

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 15, normalized size = 0.83 \begin {gather*} -\frac {3 \, x^{2} + 3 \, x + 1}{3 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+2*x+1)/x^4,x, algorithm="maxima")

[Out]

-1/3*(3*x^2 + 3*x + 1)/x^3

________________________________________________________________________________________

Fricas [A]
time = 2.09, size = 15, normalized size = 0.83 \begin {gather*} -\frac {3 \, x^{2} + 3 \, x + 1}{3 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+2*x+1)/x^4,x, algorithm="fricas")

[Out]

-1/3*(3*x^2 + 3*x + 1)/x^3

________________________________________________________________________________________

Sympy [A]
time = 0.02, size = 15, normalized size = 0.83 \begin {gather*} \frac {- 3 x^{2} - 3 x - 1}{3 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**2+2*x+1)/x**4,x)

[Out]

(-3*x**2 - 3*x - 1)/(3*x**3)

________________________________________________________________________________________

Giac [A]
time = 0.74, size = 15, normalized size = 0.83 \begin {gather*} -\frac {3 \, x^{2} + 3 \, x + 1}{3 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+2*x+1)/x^4,x, algorithm="giac")

[Out]

-1/3*(3*x^2 + 3*x + 1)/x^3

________________________________________________________________________________________

Mupad [B]
time = 0.02, size = 11, normalized size = 0.61 \begin {gather*} -\frac {x^2+x+\frac {1}{3}}{x^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x + x^2 + 1)/x^4,x)

[Out]

-(x + x^2 + 1/3)/x^3

________________________________________________________________________________________